<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
      xml:lang="en" lang="en">
<h:body>
    <h:form>
        <h:panelGrid columns="1" rendered="#{downloadrightbean.flagForDownload==false}">
            <h:panelGroup>
                <h:outputText value="#{downloadright.downloadlabel}"/>
                <h:outputText value="#{downloadrightbean.deltaConfig.configName}"/>
            </h:panelGroup>
            <h:selectOneListbox value="#{downloadrightbean.protocol}">
                <f:selectItem itemValue="ini" itemLabel="ini"/>
                <f:selectItem itemValue="xml" itemLabel="xml"/>
                <f:selectItem itemValue="props" itemLabel="properties"/>
            </h:selectOneListbox>
            <h:panelGroup>
                <h:commandButton value="#{downloadright.actiondownload}" action="#{downloadrightbean.saveFile}"/>
                <h:commandButton value="#{downloadright.canceldownload}" action="#{downloadrightbean.goDefPageAfterDownload}"/>
            </h:panelGroup>
        </h:panelGrid>
        <h:panelGrid columns="1" rendered="#{downloadrightbean.flagForDownload==true}">
            <h:outputLink value="/file/#{downloadrightbean.pathToDownloadFile}"
                          rendered="#{downloadrightbean.flagForDownload==true}">
                <h:outputText value="#{downloadright.todownload} #{downloadrightbean.deltaConfig.configName}"/>
            </h:outputLink>
            <h:commandButton value="#{downloadright.toback}" action="#{downloadrightbean.goDefPageAfterDownload}"/>
        </h:panelGrid>
    </h:form>
</h:body>
</html>